﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Atendimento.Master" AutoEventWireup="true" CodeBehind="fromMigrar.aspx.cs" Inherits="PROAD.atendimento.Forms.fromMigrar" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="IncludeHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="IncludeTitulo" runat="server">
    <h1>Fomulário para migração de usuários</h1>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="IncludeCaminho" runat="server">
    <h1><a href="/atendimento/Consulta/ConsultaPacientes.aspx">Lista de usuários</a></h1>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="IncludeConteudo" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table width="100%" cellpadding="3" cellspacing="0" border="0">
                <tr>
                    <td width="50%">Informações Atuais</td>
                    <td width="50%">Novas Informações</td>
                </tr>
                <tr>
                    <td>
                        <table width="100%">
                            <tr>
                                <td width="33%">
                                    UF Atual
                                </td>
                                <td width="33%">
                                    US Atual
                                </td>
                                <td width="34%">
                                    ES Atual
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <b><asp:Label ID="lblUfAtual" runat="server"></asp:Label></b>
                                </td>
                                <td>
                                    <b><asp:Label ID="lblUsAtual" runat="server"></asp:Label></b>
                                </td>
                                <td>
                                    <b><asp:Label ID="lblEsAtual" runat="server"></asp:Label></b>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td>
                        <table width="100%">
                            <tr>
                                <td width="33%">
                                    UF Nova
                                </td>
                                <td width="33%">
                                    US Nova
                                </td>
                                <td width="34%">
                                    ES Nova
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:DropDownList ID="ddlUf" runat="server" DataTextField="NO_SIGLA" AutoPostBack="True" 
                                        DataValueField="CO_UF" OnSelectedIndexChanged="ddlUf_SelectedIndexChanged" >
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlUS" runat="server" Width="115px" DataValueField="CO_US" AutoPostBack="True" 
                                        DataTextField="NO_US" OnSelectedIndexChanged="ddlUS_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlEs" runat="server" DataTextField="NO_ES" 
                                        DataValueField="CO_ES">
                                </asp:DropDownList>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <br/><br/>
                        <asp:Button ID="btnMigrar" runat="server" Text="Migrar usuário" OnClick="btnMigrar_Click" />
                    </td>
                </tr>
            </table>
            
            <!-- Área de Validação abaixo -->

            <div style="display:none;">
            <asp:HyperLink ID="linkMsn" runat="server">HyperLink</asp:HyperLink>
            </div>

            <asp:ModalPopupExtender ID="ModalPopupMsn" TargetControlID="linkMsn" runat="server"
                PopupControlID="PainelMsn" CancelControlID="btnCancelarMsn"
                BackgroundCssClass="modalBackground">
            </asp:ModalPopupExtender>

            <asp:Panel ID="PainelMsn" runat="server" Style="display:none" Width="350px" CssClass="modalPopup">
                <asp:Panel ID="PainelCabecalho" runat="server" Style="border-bottom:solid 1px Gray;height:25px;">
                    <div>
                        <h1 style="line-height:25px;text-align:center;margin:0px 0px 0px 0px;vertical-align:bottom;padding:0px 0px 0px 0px;font-size:14px;font-family:Verdana;background-color:#FFFF95;">
                            <asp:Label ID="txtTituloMsn" runat="server"></asp:Label>
                    
                        </h1>
                    </div>
                </asp:Panel>
                <div>
                    <br />
                    <h2 style="margin:0px 0px 0px 0px;font-family:Verdana;font-size:11px;font-weight:normal;line-height:25px;width:100%;text-align:center;">
                        <asp:Label ID="txtTextoMsn" runat="server"></asp:Label>
                    </h2>
                    <br />
                    <table width="100%">
                        <tr>
                            <td align="center">
                                <asp:Button ID="btnCancelarMsn" runat="server" Text="OK" />
                            </td>
                        </tr>
                    </table>            
                </div>
            </asp:Panel>

            <!-- Final Área de Validação -->

        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="IncludeRodape" runat="server">
</asp:Content>
